var mongoose=require('mongoose');
var config=require('../settings');

module.exports=function(){
	var db=mongoose.connect(config.mongodb);

	require('../models/user');
	return db;
}
